package org.example.executor;

import lombok.extern.slf4j.Slf4j;
import org.example.schedule.ScheduleTask;
import org.springframework.stereotype.Component;

/**
 * @author 张在成
 */
@Component
@Slf4j
public class PrintTask implements ScheduleTask {

    private  int i;

    @Override
    public void execute() {
        log.info("xxx:{},打印定时任务执行类:{}",Thread.currentThread().getId(),++i);
    }
}
